<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<%
    if (users.~size > 0) {
%>
    <h1>长度为：${users.~size}</h1>
<%
    }
%>
<hr>
<%
    for (user in users) { %>
        <h1>${user.username} ------ ${user.age}</h1>
   <% } elsefor { %>
        <h1>没有记录</h1>
   <% }
%>
<hr>
<h1>Today is ${currentDate, dateFormat="yyyy-MM-dd"}</h1>
<h1>Today is ${currentDate, dateFormat="yyyy-MM-dd HH:mm:ss"}</h1>
<script>

</script>
</body>
</html>